- @html_title ||= ts(Sales::Firm, :list)
- content_for :html_buttons do
  = link_to ts(:add,Sales::Firm), new_sales_firm_path, class: 'btn btn-xs btn-primary'

/! 搜索表单
.search_form
  - @search||= Sales::Firm.ransack {}
  = search_form_for(@search, builder: SimpleForm::FormBuilder, class: "index_search_form") do |f|
    .pull-left.push-10-l= per_page_select
    = search_button f
/! 数据列表
table.index-data-table
  thead
    tr
      th= Sales::Firm.t :name
      th= Sales::Firm.t :source_type
      th= Sales::Firm.t :active
      th= t(:operation)
  tbody
    - @sales_firms.each do |sales_firm|
      tr
        td = sales_firm.name
        td = sales_firm.source_type
        td = boolean_icon sales_firm.active
        td
          = link_to t(:view),  sales_firm, class: 'btn btn-info btn-xs'
          = link_to t(:edit), edit_sales_firm_path(sales_firm), class: 'btn btn-primary btn-xs push-5-l'
          = link_to t(:delete), sales_firm, data: { confirm: t(:confirm_to_delete) }, method: :delete, class: 'btn btn-danger  btn-xs push-5-l'
= paginate @sales_firms if @sales_firms.respond_to?(:total_pages)